'''
roles.py

Copyright 2009 Xavier Mendez Navarro aka Javi

This file is part of pysqlin

pysqlin is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation version 2 of the License.

pysqlin is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with pysqlin; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
'''

from framework.facade import Facade

class Notifier:
    def notify(self, msg, **event):
	return Facade().notify(msg, **event)

class Observer:
    def subscribe(self, func, msg, dynamic = False):
	Facade().subscribe(func, msg, dynamic)

class Registrant:
    def create_event(self, msg):
	Facade().create_event(msg)

class Printer:
    def print_status(self, msg):
	Facade().get_controller().print_status(msg)

    def print_error(self, msg):
	Facade().get_controller().print_error(msg)

    def print_msg(self, msg):
	Facade().get_controller().print_msg(msg)

    def print_char(self, pos, char):
	Facade().get_controller().print_char(pos, char)
